package com.hnevc.xiewenguang;

import java.util.HashSet;
import java.util.Iterator;

public class Example {

    public static void main(String[] args) {
        HashSet set = new HashSet();
        set.add("add");
        set.add("def");
        set.add("abc");
        Iterator iterator = set.iterator();
        while (iterator.hasNext()){

            System.out.println (iterator.next());

            }
        }
    }
